package com.arpa.oms.service;

import com.arpa.core.web.Result;
import com.arpa.oms.domain.dto.OmsGoodsDTO;
import com.arpa.oms.domain.dto.OmsGoodsRelationExcleDTO;
import com.arpa.oms.domain.vo.OmsGoodsRelationExcleVO;
import com.arpa.oms.domain.vo.OmsGoodsVO;
import com.arpa.wms.domain.dto.GoodsDTO;
import com.arpa.wms.domain.entity.Goods;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * OMS商品关系表 服务类
 * </p>
 *
 * @author spb
 * @since 2021-07-22
 */
public interface IOmsGoodsRelationService extends IService<Goods> {

    boolean create(OmsGoodsDTO entity);

    int updateByCode(OmsGoodsDTO entity);

    Integer listCount(GoodsDTO goodsDTO);

    List<Goods> listPage(GoodsDTO goodsDTO);

    Map<String, Integer> batchUpdateStatus(List<String> codes, String value);

    Map<String, Integer> deleteByCodes(List<String> codes);

    List<OmsGoodsRelationExcleVO> goodsRelationExcelView(List<OmsGoodsRelationExcleDTO> list);

    OmsGoodsVO getInfoByCode(String code);

    List<Map<String, Object>> searchPure(String keywords, String shipmentCode);

    List<Map<String, Object>> searchGoods(String goodName, String goodCode,String goodBarCode, String shipmentCode);

    Result importGoodsRelation(String importCode);
}
